﻿using System;
using System.Collections.Generic;


namespace DailyFx.Studio
{

	public partial class DailyFxSystem
	{
		/// <summary>
		///		DailyFx root's portfolio .
		/// </summary>
		private Portfolio portfolio = new Portfolio( );

		/// <summary>
		///		Contains all known symbols in market(s).
		/// </summary>
		public List<Symbol> _symbols;



		public void Create( String appPath, String dataPath )
		{ 
		}

		public void enlist ( String code, BarSeries series )
		{
			// find the symbol by name .
			Symbol symbol = this._symbols.Find( x => x.Code == code );
			if ( symbol == null)
				return;
			

			Poi poi = new Poi ( symbol, series );

			// adds the new to portfolio .
			// this.portfolio.enlist ( poi );

		}

		//public void delist (  Int32 id )
		//{
		//	this.portfolio.delist (  );

		//	// deletes the chart .
		//	this.ChartManager.DestroyCanvas ( canvas);
		//}

		//public IIndex populateIndex ( Int32 id, String name, )
		//{
		//}

	}
}
